package com.xiaoxi.open.design.creation.builderpattern.builder;

import com.xiaoxi.open.design.creation.builderpattern.domain.MyDomain;

import java.util.List;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.creation.builderpattern.builder
 * @ClassName IBuilder
 * @Description TODO
 * @Date 2024/5/14 10:49
 * @Version 1.0
 */
public interface IBuilder {

    /**
     * 打开
     */
    void open();

    /**
     * 建造一个 标题
     *
     * @param str
     */
    void buildTitle(String str);

    /**
     * 生成托盘的父类
     *
     * @param str
     */
    void buildString(String str);

    /**
     * 建造一个托盘
     *
     * @param myDomainList
     */
    void buildTray(List<MyDomain> myDomainList);

    /**
     * 释放，结束
     */
    void close();
}
